package com.godyao.mall.goods.service;


import com.godyao.mall.core.model.EsSearchParam;
import com.godyao.mall.core.model.goods.Goods;
import com.godyao.mall.goods.es.model.GoodsEs;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import java.util.List;

/**
 * @author godyao
 * @date 2022/3/31
 */
public interface IGoodsService {
    Goods save(Goods goods);

    void delGoods(Long goodsId);

    Goods findGoodsByGoodsId(Long goodsId);

    Page<Goods> findPagedGoods(Specification spec, Pageable pageable);

    Page<GoodsEs> search(EsSearchParam param);
}
